<!--{template meta}-->
<style>
h3{
font-weight:bold;
margin:5px auto;
}
p{
line-hegiht:10px;
}
#btnqiandao{
margin-top:30px;
}
</style>
 <div class="m_search userspaceheader">

    <div class="weui-flex">
      
        <div class="weui-flex__item"> <span class="ws_h_title">活动参与</span></div>
        
    </div>
</div>
<div style="margin: 50px 20px; ">
<h3>【活动时间】</h3>
<p>

6月18日 通过推送方式全员参与
</p>

<h3>【活动规则】</h3>
<p>
每人限参与一次，限关注公众号用户，先到先得。
</p>
<p>
领取红包后，红包会自动发放到微信公众号内，用户可以点击领取。
</p>
 <button id="btnqiandao" onclick="qiandao()" class="ui-btn-primary ui-btn-lg">领取红包</button>

</div>
    

     
<script>
var canqiandao=0;

function qiandao(){
	window.location.href="{url qiandao/gethongbao}";
	
}
</script>

{if $signPackage!=null}

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"> </script>


<script>

  wx.config({
      debug: false,
      appId: '{$signPackage["appId"]}',
      timestamp: {$signPackage["timestamp"]},
      nonceStr: '{$signPackage["nonceStr"]}',
      signature: '{$signPackage["signature"]}',
      jsApiList: [
                  'checkJsApi',
        'hideAllNonBaseMenuItem',
        'getLocation'
       
        
       
        
      ]
  });

</script>

<script>
wx.ready(function () {
    wx.checkJsApi({
	      jsApiList: [
	       
	        'hideAllNonBaseMenuItem',
	        'getLocation'
	     
	      ],
	      success: function (res) {
	       // alert(JSON.stringify(res));
	      }
	    });
    wx.hideAllNonBaseMenuItem();
    

	    });
	    
	   
</script>
{/if}
